package com.baijiaoxi.common.model.base.service.extension;

import com.baijiaoxi.common.model.base.model.CoreModel;
import org.springframework.web.multipart.MultipartFile;

/**
 * 泛型是方便Autowired的
 *
 * @param <E>
 */
public interface ExcelImportService<E extends CoreModel> {

    /**
     * 从excel导入数据
     *
     * @param file
     * @param model
     */
    default void importFromExcel(MultipartFile file, String model) {

    }


}
